/* generated using openapi-typescript-codegen -- do no edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { BuildingInfo_ } from '../models/BuildingInfo_';
import type { Result } from '../models/Result';

import type { CancelablePromise } from '../core/CancelablePromise';
import { OpenAPI } from '../core/OpenAPI';
import { request as __request } from '../core/request';

export class BuildingInfoControllerService {

    /**
     * addDetail
     * @param buildingInfo buildingInfo
     * @returns Result OK
     * @returns any Created
     * @throws ApiError
     */
    public static addDetailUsingPost(
buildingInfo: BuildingInfo_,
): CancelablePromise<Result | any> {
        return __request(OpenAPI, {
            method: 'POST',
            url: '/building-info/add',
            body: buildingInfo,
            errors: {
                401: `Unauthorized`,
                403: `Forbidden`,
                404: `Not Found`,
            },
        });
    }

    /**
     * deleteDeatil
     * @param buildingInfo buildingInfo
     * @returns Result OK
     * @returns any Created
     * @throws ApiError
     */
    public static deleteDeatilUsingPost(
buildingInfo: BuildingInfo_,
): CancelablePromise<Result | any> {
        return __request(OpenAPI, {
            method: 'POST',
            url: '/building-info/delete',
            body: buildingInfo,
            errors: {
                401: `Unauthorized`,
                403: `Forbidden`,
                404: `Not Found`,
            },
        });
    }

    /**
     * updateDetail
     * @param buildingInfo buildingInfo
     * @returns Result OK
     * @returns any Created
     * @throws ApiError
     */
    public static updateDetailUsingPost(
buildingInfo: BuildingInfo_,
): CancelablePromise<Result | any> {
        return __request(OpenAPI, {
            method: 'POST',
            url: '/building-info/update',
            body: buildingInfo,
            errors: {
                401: `Unauthorized`,
                403: `Forbidden`,
                404: `Not Found`,
            },
        });
    }

}
